package com.cyw.note.reception.controller;

import com.cyw.note.common.RespBean;
import com.cyw.note.manage.service.ITypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/type")
public class TypeShowController {

    @Autowired
    private ITypeService iTypeService;
    /**
     * 查询所有分类
     * @return
     */
    @GetMapping("/getAllType")
    public RespBean getAllType(){
//        List<TType> typeList = tTypeService.list();
        return iTypeService.getAllType();
    }
}
